package com.yyaccp.appinfo.controller;

import com.yyaccp.appinfo.domain.AppCategory;
import com.yyaccp.appinfo.service.AppCategoryService;
import com.yyaccp.appinfo.util.AjaxResult;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import javax.annotation.Resource;
import java.util.List;

@RestController
@RequestMapping("/api/appCate")
public class AppCateController {
    @Resource
    private AppCategoryService appCategoryService;

    @RequestMapping("seachByid")
    public AjaxResult seachByid(Integer parentId){
        List<AppCategory> list = appCategoryService.selectByid(parentId);
        return AjaxResult.success(list);
    }
}
